package com.hospital.wx.service.Impl;

import com.hospital.wx.dao.HealthGuidesDao;
import com.hospital.wx.service.HealthGuidesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;

@Service
@Slf4j
public class HealthGuidesServiceImpl implements HealthGuidesService {
    @Autowired
    private HealthGuidesDao healthGuidesDao;

    @Override
    public ArrayList<HashMap> selectByViews() {
        return healthGuidesDao.selectByViews();
    }

    @Override
    public ArrayList<HashMap> selectAll() {
        return healthGuidesDao.selectAll();
    }

    @Override
    public HashMap selectMoreDescriptionById(int id) {
        return healthGuidesDao.selectMoreDescriptionById(id);
    }

}
